package com.goktech.sportsmall.controller;

import com.goktech.sportsmall.service.Impl.IndexServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Autowired(required = false)
    IndexServiceImpl indexService;

    @RequestMapping("/index")
    public String getIndex(){
        return "success";
    }

    @RequestMapping("/getHello")
    public String getHello(){
        return indexService.getHello();
    }

}
